﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace wForm
{
    public partial class frmMarka : Form
    {
        public frmMarka()
        {
            InitializeComponent();
            this.Load += new EventHandler(frmMarka_Load);
        }
        DataClasses1DataContext db = new DataClasses1DataContext(); 
        void frmMarka_Load(object sender, EventArgs e)
        {
            repositoryItemLookUpEdit1.DataSource = db.Kategoris;

            gridControl1.DataSource = db.Markas; 
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            db.SubmitChanges(); 
        }
    }
}
